package com.example.demo.dao;


import com.example.demo.entity.sqlbean.Repair;
import com.example.demo.entity.sqlbean.RepairExpressNo;
import com.example.demo.entity.sqlbean.RepairList;
import com.example.demo.entity.sqlbean.repair.ProjectApplicationRepair;
import com.example.demo.entity.sqlbean.repair.ProjectDeviceRepair;
import com.example.demo.entity.sqlbean.repair.RolesEmployees;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RepairDao {

    RepairList selectProjectProduct(@Param("ProjectId") Long projectId, @Param("ProductId") Long productId);

    Long insertApproval(Repair repair);

//    @Param("ProjectId") Long projectId, @Param("customerId") int customerId
    int saveNewProjectMaintenance(@Param("id") Long id, @Param("ProductId") Long productId,
                                  @Param("totalNumber") int totalNumber );


    List<ProjectDeviceRepair> selectProjectProductById(@Param("approvalId") Long approvalId);

    ProjectApplicationRepair selectProjectApproval(@Param("approvalId") Long approvalId);

    RolesEmployees selectRolesEmployees(@Param("rolesId") Long rolesId);

    List<RepairExpressNo> selectExpressNo(@Param("approvalId") Long approvalId);
}
